<?php
require_once("../db/config.php");
session_start();
$sid=session_id();
// echo $sid;
 $sql="select * from message where sid='$sid'";
 $set=mysqli_query($con, $sql);
 $flag= mysqli_num_rows($set);
 echo $flag;
